package com.young.domain;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author: create by Young
 * @version: v1.0
 * @description: com.young.domain
 * @date:2019/3/17 3:25
 */
@Mapper
public interface MemberMapper {
	@Select("SELECT * FROM MEMBER WHERE USERNAME=#{name}")
	Member findByName(@Param("name") String name);

	@Insert("INSERT INTO MEMBER(username,password) VALUES(#{username},#{password})")
	void createMember(@Param("username") String username, @Param("password") String password);
}
